package com.flx.dis.read.write.split;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import com.flx.common.plugins.annotion.enable.EnableCross;
import com.flx.common.plugins.annotion.enable.EnableException;
import com.flx.common.plugins.annotion.enable.EnableFlyway;
import com.flx.common.plugins.annotion.enable.EnableSwagger;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

/**
 * @Author: Fenglixiong
 * @Date: 2021/6/16 16:48
 * @Description: 设置动态数据源需要禁用数据源自动配置
 */
@Slf4j
@EnableCross        //加入跨域处理
@EnableFlyway       //加入Flyway数据库
@EnableSwagger      //加入Swagger文档
@EnableException    //加入全局异常处理
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class,DruidDataSourceAutoConfigure.class, FlywayAutoConfiguration.class})
public class SplitApplication {

    public static void main(String[] args) {
        SpringApplication.run(SplitApplication.class,args);
        log.info("*************************************************");
        log.info("*                                               *");
        log.info("*                SplitApp Success               *");
        log.info("*                                               *");
        log.info("*************************************************");
    }

}
